import { useShios } from '../src/index';
//import { aa } from './tesws';
// Arrange
var shios = useShios('https://localhost:5001/api/');
var search = {
  filename: '123.txt',
  username: 'shang',
};
var query = {};
// // Act
let searchStrings = shios.getSearchStrings(query);
let searchStrings2 = shios.getSearchStrings(search);
let searchstring = [...searchStrings, ...searchStrings2].join('&');

console.assert(searchstring == 'filename=123.txt&username=shang');

// (async () => {
//   console.log('ok');
//   const res = await shios.get('a', { search });
//   console.log(res);
// })();
